<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>tabcle效果</title>

    <style type="text/css">

    </style>
</head>
<body>
<div class="main">
   <table border="1" cellpadding="6">
       <tr>
           <td>学生名称</td>
           <td>密码</td>
           <td>性别</td>
       </tr>
        <#assign curIndex=1>
       <#list userDtoList as  userDto>
            <#assign rows=0>
           <#list userDtoList as  userTemp>
            <#if userTemp.userName==userDto.userName>
                <#assign rows=rows+1>
            </#if>
           </#list>
       <tr>

           <#if curIndex==userDto_index+1>
               <td rowspan="${rows}">${userDto.userName}</td>
               <#assign curIndex=curIndex+rows>
           </#if>

           <td>${userDto.password}===${curIndex}---${userDto_index+1}</td>
           <td>${userDto.age}</td>
       </tr>
       </#list>
   </table>

    <h5>正常-静态显示</h5>
    <table border="1" cellpadding="6">
        <tr>
            <th>姓名</th>
            <th>电话</th>
            <th>年龄</th>
        </tr>
        <tr>
            <th rowspan="3">石头</th>
            <td>555 77 854</td>
            <td>20</td>
        </tr>
        <tr>
            <td style="display: none">小明啊</td>
            <td>555 77 855</td>
            <td>23</td>
        </tr>
        <tr>
            <td style="display: none">小明啊</td>
            <td>256955</td>
            <td>23</td>
        </tr>
        <tr>
            <th rowspan="2">石头</th>
            <td>555 77 854</td>
            <td>18</td>
        </tr>
        <tr>
            <td>555 77 855</td>
            <td>28</td>
        </tr>
    </table>

    <table cellpadding="6" border="1">
        <tbody><tr>
            <td>学生名称</td>
            <td>密码</td>
            <td>性别</td>
        </tr>
        <tr>
            <td rowspan="2">胡军===0</td>

            <td>123789</td>
            <td>23</td>
        </tr>
        <tr>

            <td>58695</td>
            <td>33</td>
        </tr>

        <tr>
            <td rowspan="3">石头===3</td>

            <td>3259546</td>
            <td>21</td>
        </tr>
        <tr>

            <td>123789</td>
            <td>18</td>
        </tr>

        </tbody></table>
</div>
</body>
</html>